import request from "@/utils/request";


export function selectAll(params){
    return request({
        url:'/menu/selectAll',
        method:'get',
        params:params
    })
}


export function selectAllMenuIds(){
    return request({
        url:'/menu/ids',
        method:'get',
    })
}

export function delMenu(id){
    return request({
        url:'/menu/delete/'+id,
        method:'delete',
    })
}

export function deleteBatch(ids){
    return request({
        url:'/menu/deleteBatch',
        method:'post',
        data:ids
    })
}



export function save(data){
    return request({
        url:'/menu/save',
        method:'post',
        data:data
    })
}


export function edit(data){
    return request({
        url:'/menu/edit',
        method:'post',
        data:data
    })
}

export function getIconList(){
    return request({
        url:'/menu/getIconList',
        method:'get'
    })
}
